<?php

use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return bool
     */
    public function run()
    {
        DB::table('users')->insert([
            [
                'phone' => 13163153910,
                'group_id' => 1,
                'name' => '系统管理员',
                'is_admin' => 1,
                'status' => 1,
                'created_at' => date('Y-m-d H:i:s')
            ]
        ]);
        DB::table('user_secrets')->insert([
            [
                'user_id' => 30100,
                'mode' => 'account',
                'secret' => bcrypt('a123456'),
                'created_at' => date('Y-m-d H:i:s')
            ]
        ]);
        DB::table('user_extra')->insert([
            [
                'user_id' => 30100,
                'created_at' => date('Y-m-d H:i:s')
            ]
        ]);
        return true;
    }
}
